package com.vercon.common.mode.openweather;

import java.io.Serializable;

public class CityBean implements Serializable {


    /**
     * ip : 104.206.206.125
     * continent_code : NA
     * country : United States
     * country_code : US
     * country_code3 : USA
     * region : New York
     * region_code : NY
     * city : New York
     * postal_code : 10038
     * latitude : 40.7114
     * longitude : -74.0005
     * timezone : America/New_York
     * offset : -14400
     * asn : 62904
     * organization : EONIX-COMMUNICATIONS-ASBLOCK-62904
     */

    private String ip;
    private String continent_code;
    private String country;
    private String country_code;
    private String country_code3;
    private String region;
    private String region_code;
    private String city;
    private String postal_code;
    private double latitude;
    private double longitude;
    private String timezone;
    private int offset;
    private int asn;
    private String organization;

    public CityBean() {

    }

    public CityBean(String city, double latitude, double longitude) {
        this.city = city;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getContinent_code() {
        return continent_code;
    }

    public void setContinent_code(String continent_code) {
        this.continent_code = continent_code;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCountry_code() {
        return country_code;
    }

    public void setCountry_code(String country_code) {
        this.country_code = country_code;
    }

    public String getCountry_code3() {
        return country_code3;
    }

    public void setCountry_code3(String country_code3) {
        this.country_code3 = country_code3;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getRegion_code() {
        return region_code;
    }

    public void setRegion_code(String region_code) {
        this.region_code = region_code;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPostal_code() {
        return postal_code;
    }

    public void setPostal_code(String postal_code) {
        this.postal_code = postal_code;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getTimezone() {
        return timezone;
    }

    public void setTimezone(String timezone) {
        this.timezone = timezone;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getAsn() {
        return asn;
    }

    public void setAsn(int asn) {
        this.asn = asn;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    @Override
    public String toString() {
        return "CityBean{" +
                "ip='" + ip + '\'' +
                ", continent_code='" + continent_code + '\'' +
                ", country='" + country + '\'' +
                ", country_code='" + country_code + '\'' +
                ", country_code3='" + country_code3 + '\'' +
                ", region='" + region + '\'' +
                ", region_code='" + region_code + '\'' +
                ", city='" + city + '\'' +
                ", postal_code='" + postal_code + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", timezone='" + timezone + '\'' +
                ", offset=" + offset +
                ", asn=" + asn +
                ", organization='" + organization + '\'' +
                '}';
    }
}
